1 package org.apache.jsp;
2
3 import javax.servlet.*;
4 import javax.servlet.http.*;
5 import javax.servlet.jsp.*;
6
7 public final class test_jsp extends org.apache.jasper.runtime.HttpJspBase
8 implements org.apache.jasper.runtime.JspSourceDependent {
9
10
11
12 //1、可定义方法
13 public String outMethod(){
14 return "outMethod";
15 }
16 //2、可定义static方法
17 public static String outStaticMethod(){
18 return "outStaticMethod";
19 }
20 //3、可定义static属性
21 public static int count = 0;
22
23 //4、不可以使用out对象
24
25 private static final JspFactory _jspxFactory = JspFactory.getDefaultFactory();
26
27 private static java.util.List _jspx_dependants;
28
29 private javax.el.ExpressionFactory _el_expressionfactory;
30 private org.apache.AnnotationProcessor _jsp_annotationprocessor;
31
32 public Object getDependants() {
33 return _jspx_dependants;
34 }
35
36 public void _jspInit() {
37 _el_expressiOnfactory= _jspxFactory.getJspApplicationContext(getServletConfig().getServletContext()).getExpressionFactory();
38 _jsp_annotatiOnprocessor= (org.apache.AnnotationProcessor) getServletConfig().getServletContext().getAttribute(org.apache.AnnotationProcessor.class.getName());
39 }
40
41 public void _jspDestroy() {
42 }
43
44 public void _jspService(HttpServletRequest request, HttpServletResponse response)
45 throws java.io.IOException, ServletException {
46
47 PageContext pageCOntext= null;
48 HttpSession session = null;
49 ServletContext application = null;
50 ServletConfig cOnfig= null;
51 JspWriter out = null;
52 Object page = this;
53 JspWriter _jspx_out = null;
54 PageContext _jspx_page_cOntext= null;
55
56
57 try {
58 response.setContentType("text/html; charset=utf-8");
59 pageCOntext= _jspxFactory.getPageContext(this, request, response,
60 null, true, 8192, true);
61 _jspx_page_cOntext= pageContext;
62 application = pageContext.getServletContext();
63 cOnfig= pageContext.getServletConfig();
64 session = pageContext.getSession();
65 out = pageContext.getOut();
66 _jspx_out = out;
67
68 out.write("\r\n");
69 out.write("\r\n");
70 out.write("\r\n");
71 out.write("\r\n");
72 out.write("\r\n");
73 out.write("\r\n");
74 out.write("\r\n");
75 out.write("\r\n");
76 out.write("\r\n");
77 out.write("\r\n");
78
79 //1、不可定义方法
80 //2、不可定义static方法
81 //3、不可定义static属性
82
83 //可以使用out对象
84 out.print(outMethod());
85 out.print("
");
86 out.print(outStaticMethod());
87 out.print("
");
88 out.print(count);
89
90 out.write("\r\n");
91 out.write("\r\n");
92 out.write("");
93 } catch (Throwable t) {
94 if (!(t instanceof SkipPageException)){
95 out = _jspx_out;
96 if (out != null && out.getBufferSize() != 0)
97 try { out.clearBuffer(); } catch (java.io.IOException e) {}
98 if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
99 }
100 } finally {
101 _jspxFactory.releasePageContext(_jspx_page_context);
102 }
103 }
104 }